package jfox.platform.infrastructure;

/**
 * Entity 被引用
 *
 * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
 */
public class EntityReferencedException extends BusinessException{

    private Class entityType;
    private long id;

    public EntityReferencedException(Class entityType, long id) {
        super(entityType.getName() + "=" + id);
        this.entityType = entityType;
        this.id = id;
    }

    public Class getEntityType() {
        return entityType;
    }

    public long getId() {
        return id;
    }

}
